﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace QuickPasteToolWeb.Service
{
    public class WebClient : IWebClient
    {
        private HttpClient _httpClient = new HttpClient();
        public string GetSearchTip(string url)
        {
            var response =  _httpClient.GetAsync(url).Result;
            return  response.Content.ReadAsStringAsync().Result;
        }
    }
}
